package myjava.snippets;

public class Root1 {

   public static void main(String[] args) {

      Foo o = new Foo();
      String[] ss = o.toArray("fabs", "is", "really", "coooool");
   }
}

class Foo {

   public String[] toArray(String... str) {
      
      int len = str.length;
      String[] temp = new String[len];

      for (int i = 0; i < len; i++) {
         temp[i] = str[i];
      }

      return temp;
   }
}
